package top.shen33.yang.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * <p>
 * 类别
 * </p>
 *
 * @author oreilly
 * @since 2018-08-30
 */
public class EdoCate extends Model<EdoCate> {

private static final long serialVersionUID = 1L;


                @TableId(value = "sid", type = IdType.AUTO)
                
    private Integer sid;
    /**
     * 类别名称
     */

        
    @Excel(name = "类别名称",width = 20,orderNum = "0")
    private String sname;
    /**
     * 创建时间
     */

        
    @Excel(name = "创建时间",width = 20,orderNum = "0")
    private Date ctime;

    @Excel(name = "正文数量",width = 20,orderNum = "0")
    private Integer postNum;

    public Integer getPostNum() {
        return postNum;
    }

    public void setPostNum(Integer postNum) {
        this.postNum = postNum;
    }

    public Integer getSid() {
            return sid;
    }

    public void setSid(Integer sid) {
            this.sid = sid;
    }

    public String getSname() {
            return sname;
    }

    public void setSname(String sname) {
            this.sname = sname;
    }

    public Date getCtime() {
            return ctime;
    }

    public void setCtime(Date ctime) {
            this.ctime = ctime;
    }

    @Override
    protected Serializable pkVal() {
            return this.sid;
    }

    @Override
    public String toString() {
        return "EdoCate{" +
                ", sid=" + sid +
                ", sname=" + sname +
                ", ctime=" + ctime +
        "}";
    }
}
